package com.github.yeecode.mybatisdemo.reflect;

import com.github.yeecode.mybatisdemo.model.User;

import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;

public class DemoApplicationCP4 {
    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
        User target = new User();
        Method[] declaredMethods = target.getClass().getDeclaredMethods();
        Method getAge = User.class.getDeclaredMethod("getAge");
        Type type = MyTypeParameterResolver.resolveReturnType(getAge, null);
        System.out.println(type.getTypeName());


    }






}
